1649dc77eb128d9477739e28b7997ac5666fc16c,src/com/redhat/ceylon/compiler/codegen/BoxingDeclarationVisitor.java,BoxingDeclarationVisitor,visit,#MethodDefinition#,47

Before Change


        Method method = that.getDeclarationModel();
        Method refinedMethod = (Method) Util.getTopmostRefinedDeclaration(method);
        if(isPrimitive(method, refinedMethod))
            Util.markUnBoxed(method);
        Iterator<Parameter> parameters = method.getParameterLists().get(0).getParameters().iterator();
        for(Parameter refinedParam : refinedMethod.getParameterLists().get(0).getParameters()){
            Parameter param = parameters.next();

After Change


        Method method = that.getDeclarationModel();
        Method refinedMethod = (Method) Util.getTopmostRefinedDeclaration(method);
        if(isPrimitive(method, refinedMethod)) {
            Util.markUnBoxed(method);
            Util.markUnBoxed(refinedMethod);
        }
        Iterator<Parameter> parameters = method.getParameterLists().get(0).getParameters().iterator();
        for(Parameter refinedParam : refinedMethod.getParameterLists().get(0).getParameters()){